home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / DiskInit.a < prev    next >
Text File  |  1996-05-01  |  4KB  |  169 lines

  1. ;
  2. ;    File:        DiskInit.a
  3. ;
  4. ;    Contains:    Disk Initialization Package ('PACK' 2) Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__DISKINIT__') = 'UNDEFINED' THEN
  19. __DISKINIT__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24.     IF FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED THEN
  25. HFSDefaults                RECORD 0
  26. sigWord                     ds.b    2                ; offset: $0 (0)        ;  signature word 
  27. abSize                     ds.l    1                ; offset: $2 (2)        ;  allocation block size in bytes 
  28. clpSize                     ds.l    1                ; offset: $6 (6)        ;  clump size in bytes 
  29. nxFreeFN                 ds.l    1                ; offset: $A (10)        ;  next free file number 
  30. btClpSize                 ds.l    1                ; offset: $E (14)        ;  B-Tree clump size in bytes 
  31. rsrv1                     ds.w    1                ; offset: $12 (18)        ;  reserved 
  32. rsrv2                     ds.w    1                ; offset: $14 (20)        ;  reserved 
  33. rsrv3                     ds.w    1                ; offset: $16 (22)        ;  reserved 
  34. sizeof                     EQU *                    ; size:   $18 (24)
  35.                         ENDR
  36. ;
  37. ; pascal void DILoad(void )
  38. ;
  39.     IF ¨ GENERATINGCFM THEN
  40.         Macro
  41.         _DILoad
  42.             moveq               #2,D0
  43.             move.w              D0,-(sp)
  44.             dc.w                $A9E9
  45.         EndM
  46.     ELSE
  47.         IMPORT_CFM_FUNCTION DILoad
  48.     ENDIF
  49.  
  50. ;
  51. ; pascal void DIUnload(void )
  52. ;
  53.     IF ¨ GENERATINGCFM THEN
  54.         Macro
  55.         _DIUnload
  56.             moveq               #4,D0
  57.             move.w              D0,-(sp)
  58.             dc.w                $A9E9
  59.         EndM
  60.     ELSE
  61.         IMPORT_CFM_FUNCTION DIUnload
  62.     ENDIF
  63.  
  64. ;
  65. ; pascal short DIBadMount(Point where, long evtMessage)
  66. ;
  67.     IF ¨ GENERATINGCFM THEN
  68.         Macro
  69.         _DIBadMount
  70.             moveq               #0,D0
  71.             move.w              D0,-(sp)
  72.             dc.w                $A9E9
  73.         EndM
  74.     ELSE
  75.         IMPORT_CFM_FUNCTION DIBadMount
  76.     ENDIF
  77.  
  78. ;
  79. ; pascal OSErr DIFormat(short drvNum)
  80. ;
  81.     IF ¨ GENERATINGCFM THEN
  82.         Macro
  83.         _DIFormat
  84.             moveq               #6,D0
  85.             move.w              D0,-(sp)
  86.             dc.w                $A9E9
  87.         EndM
  88.     ELSE
  89.         IMPORT_CFM_FUNCTION DIFormat
  90.     ENDIF
  91.  
  92. ;
  93. ; pascal OSErr DIVerify(short drvNum)
  94. ;
  95.     IF ¨ GENERATINGCFM THEN
  96.         Macro
  97.         _DIVerify
  98.             moveq               #8,D0
  99.             move.w              D0,-(sp)
  100.             dc.w                $A9E9
  101.         EndM
  102.     ELSE
  103.         IMPORT_CFM_FUNCTION DIVerify
  104.     ENDIF
  105.  
  106. ;
  107. ; pascal OSErr DIZero(short drvNum, ConstStr255Param volName)
  108. ;
  109.     IF ¨ GENERATINGCFM THEN
  110.         Macro
  111.         _DIZero
  112.             moveq               #10,D0
  113.             move.w              D0,-(sp)
  114.             dc.w                $A9E9
  115.         EndM
  116.     ELSE
  117.         IMPORT_CFM_FUNCTION DIZero
  118.     ENDIF
  119.  
  120. ;
  121. ;    DIXFormat, DIXZero, and DIReformat are only available when FSM (File System Manager) is installed.
  122. ;    FSM is part of Macintosh PC Exchange and System 7.5.
  123. ;
  124. ;
  125. ; pascal OSErr DIXFormat(short drvNum, Boolean fmtFlag, unsigned long fmtArg, unsigned long *actSize)
  126. ;
  127.     IF ¨ GENERATINGCFM THEN
  128.         Macro
  129.         _DIXFormat
  130.             moveq               #12,D0
  131.             move.w              D0,-(sp)
  132.             dc.w                $A9E9
  133.         EndM
  134.     ELSE
  135.         IMPORT_CFM_FUNCTION DIXFormat
  136.     ENDIF
  137.  
  138. ;
  139. ; pascal OSErr DIXZero(short drvNum, ConstStr255Param volName, short fsid, short mediaStatus, short volTypeSelector, unsigned long volSize, void *extendedInfoPtr)
  140. ;
  141.     IF ¨ GENERATINGCFM THEN
  142.         Macro
  143.         _DIXZero
  144.             moveq               #14,D0
  145.             move.w              D0,-(sp)
  146.             dc.w                $A9E9
  147.         EndM
  148.     ELSE
  149.         IMPORT_CFM_FUNCTION DIXZero
  150.     ENDIF
  151.  
  152. ;
  153. ; pascal OSErr DIReformat(short drvNum, short fsid, ConstStr255Param volName, ConstStr255Param msgText)
  154. ;
  155.     IF ¨ GENERATINGCFM THEN
  156.         Macro
  157.         _DIReformat
  158.             moveq               #16,D0
  159.             move.w              D0,-(sp)
  160.             dc.w                $A9E9
  161.         EndM
  162.     ELSE
  163.         IMPORT_CFM_FUNCTION DIReformat
  164.     ENDIF
  165.  
  166.     ENDIF
  167.     ENDIF ; __DISKINIT__ 
  168.  
  169.